package com.regentsoft.cloudback.operateAdmin.dao;

import com.regentsoft.cloudback.base.BaseMapper;
import com.regentsoft.cloudback.operateAdmin.entity.Activation;
import com.regentsoft.cloudback.operateAdmin.entity.CompanyName;
import com.regentsoft.cloudback.vo.QueryActivationVo;

import java.util.List;
import java.util.Map;

/**
 *
 * @author czd
 *
 * @date 2017年11月30日
 *
 * @version 1.0
 */
public interface ActivationMapper extends BaseMapper<Activation, java.lang.String> {
    List<CompanyName> queryCompanyId(String companyId);

	int findByCode(String randomCode);

	List<QueryActivationVo> queryByPageCode(Map<String, Object> map);
	/**
	 * 判断激活码是否使用
	 * @param code
	 * @return
	 */
	int countByCode(String code);
	

	void deleteActivation(String code);

	void deleteActivationCode(String code);

	String getCompanyId(String activationCode);

	QueryActivationVo queryActivationDetail(String code);

}
